Optimal. Leaf size=118 \[ \frac{1}{9} \left (3 x^2-x+2\right )^{3/2} (2 x+1)^3+\frac{1}{5} \left (3 x^2-x+2\right )^{3/2} (2 x+1)^2+\frac{1}{810} (306 x+25) \left (3 x^2-x+2\right )^{3/2}+\frac{235 (1-6 x) \sqrt{3 x^2-x+2}}{1296}+\frac{5405 \sinh ^{-1}\left (\frac{1-6 x}{\sqrt{23}}\right )}{2592 \sqrt{3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.111741, antiderivative size = 118, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {1653, 832, 779, 612, 619, 215} \[ \frac{1}{9} \left (3 x^2-x+2\right )^{3/2} (2 x+1)^3+\frac{1}{5} \left (3 x^2-x+2\right )^{3/2} (2 x+1)^2+\frac{1}{810} (306 x+25) \left (3 x^2-x+2\right )^{3/2}+\frac{235 (1-6 x) \sqrt{3 x^2-x+2}}{1296}+\frac{5405 \sinh ^{-1}\left (\frac{1-6 x}{\sqrt{23}}\right )}{2592 \sqrt{3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1653
Rule 832
Rule 779
Rule 612
Rule 619
Rule 215
Rubi steps
\begin{align*} \int (1+2 x)^2 \sqrt{2-x+3 x^2} \left (1+3 x+4 x^2\right ) \, dx &=\frac{1}{9} (1+2 x)^3 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{72} \int (1+2 x)^2 (-12+216 x) \sqrt{2-x+3 x^2} \, dx\\ &=\frac{1}{5} (1+2 x)^2 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{9} (1+2 x)^3 \left (2-x+3 x^2\right )^{3/2}+\frac{\int (1+2 x) (-1584+2448 x) \sqrt{2-x+3 x^2} \, dx}{1080}\\ &=\frac{1}{5} (1+2 x)^2 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{9} (1+2 x)^3 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{810} (25+306 x) \left (2-x+3 x^2\right )^{3/2}-\frac{235}{108} \int \sqrt{2-x+3 x^2} \, dx\\ &=\frac{235 (1-6 x) \sqrt{2-x+3 x^2}}{1296}+\frac{1}{5} (1+2 x)^2 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{9} (1+2 x)^3 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{810} (25+306 x) \left (2-x+3 x^2\right )^{3/2}-\frac{5405 \int \frac{1}{\sqrt{2-x+3 x^2}} \, dx}{2592}\\ &=\frac{235 (1-6 x) \sqrt{2-x+3 x^2}}{1296}+\frac{1}{5} (1+2 x)^2 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{9} (1+2 x)^3 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{810} (25+306 x) \left (2-x+3 x^2\right )^{3/2}-\frac{\left (235 \sqrt{\frac{23}{3}}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{23}}} \, dx,x,-1+6 x\right )}{2592}\\ &=\frac{235 (1-6 x) \sqrt{2-x+3 x^2}}{1296}+\frac{1}{5} (1+2 x)^2 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{9} (1+2 x)^3 \left (2-x+3 x^2\right )^{3/2}+\frac{1}{810} (25+306 x) \left (2-x+3 x^2\right )^{3/2}+\frac{5405 \sinh ^{-1}\left (\frac{1-6 x}{\sqrt{23}}\right )}{2592 \sqrt{3}}\\ \end{align*}
Mathematica [A] time = 0.0387511, size = 65, normalized size = 0.55 \[ \frac{6 \sqrt{3 x^2-x+2} \left (17280 x^5+35712 x^4+33552 x^3+22344 x^2+14638 x+5607\right )-27025 \sqrt{3} \sinh ^{-1}\left (\frac{6 x-1}{\sqrt{23}}\right )}{38880} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.055, size = 98, normalized size = 0.8 \begin{align*}{\frac{8\,{x}^{3}}{9} \left ( 3\,{x}^{2}-x+2 \right ) ^{{\frac{3}{2}}}}+{\frac{32\,{x}^{2}}{15} \left ( 3\,{x}^{2}-x+2 \right ) ^{{\frac{3}{2}}}}+{\frac{83\,x}{45} \left ( 3\,{x}^{2}-x+2 \right ) ^{{\frac{3}{2}}}}+{\frac{277}{810} \left ( 3\,{x}^{2}-x+2 \right ) ^{{\frac{3}{2}}}}-{\frac{-235+1410\,x}{1296}\sqrt{3\,{x}^{2}-x+2}}-{\frac{5405\,\sqrt{3}}{7776}{\it Arcsinh} \left ({\frac{6\,\sqrt{23}}{23} \left ( x-{\frac{1}{6}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.4895, size = 147, normalized size = 1.25 \begin{align*} \frac{8}{9} \,{\left (3 \, x^{2} - x + 2\right )}^{\frac{3}{2}} x^{3} + \frac{32}{15} \,{\left (3 \, x^{2} - x + 2\right )}^{\frac{3}{2}} x^{2} + \frac{83}{45} \,{\left (3 \, x^{2} - x + 2\right )}^{\frac{3}{2}} x + \frac{277}{810} \,{\left (3 \, x^{2} - x + 2\right )}^{\frac{3}{2}} - \frac{235}{216} \, \sqrt{3 \, x^{2} - x + 2} x - \frac{5405}{7776} \, \sqrt{3} \operatorname{arsinh}\left (\frac{1}{23} \, \sqrt{23}{\left (6 \, x - 1\right )}\right ) + \frac{235}{1296} \, \sqrt{3 \, x^{2} - x + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.55612, size = 243, normalized size = 2.06 \begin{align*} \frac{1}{6480} \,{\left (17280 \, x^{5} + 35712 \, x^{4} + 33552 \, x^{3} + 22344 \, x^{2} + 14638 \, x + 5607\right )} \sqrt{3 \, x^{2} - x + 2} + \frac{5405}{15552} \, \sqrt{3} \log \left (4 \, \sqrt{3} \sqrt{3 \, x^{2} - x + 2}{\left (6 \, x - 1\right )} - 72 \, x^{2} + 24 \, x - 25\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (2 x + 1\right )^{2} \sqrt{3 x^{2} - x + 2} \left (4 x^{2} + 3 x + 1\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16029, size = 99, normalized size = 0.84 \begin{align*} \frac{1}{6480} \,{\left (2 \,{\left (12 \,{\left (6 \,{\left (8 \,{\left (15 \, x + 31\right )} x + 233\right )} x + 931\right )} x + 7319\right )} x + 5607\right )} \sqrt{3 \, x^{2} - x + 2} + \frac{5405}{7776} \, \sqrt{3} \log \left (-2 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} - x + 2}\right )} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]